<?php 
	//-------------------INPUT ELEMENTS----------------
	$name 			= $this->formText('name',$this->Item['name'],array('class'=>'txtmedium'));
	
	$picture 		= $this->formFile('picture');
	$options		= array('Inactive','Active');
	$status			= $this->formRadio('status',$this->Item['status'],null,$options, ' ');
	$order			= $this->formText('order',$this->Item['order'],array('class'=>'txtshort'));
	$parents 		= $this->cmsSelect('parents',$this->Item['parents'],
										$this->slbCategory,array('size'=>10,'style'=>'min-width: 200px;'));
	$arrInput = array(
						array('label'=>'Category name: ', 'input'=>$name),
						array('label'=>'Picture: ', 'input'=>$picture),
						array('label'=>'Parents: ', 'input'=>$parents),						
						array('label'=>'Status: ', 'input'=>$status),
						array('label'=>'Order: ', 'input'=>$order),
						);
	//------------------------MESSAGES ERROR----------------------
		$errors = "";
		if(count($this->messageError)>0){
			$errors = $this->formErrors($this->messageError,array('id'=>'errors'));
		}			
?>
<form name="appForm" method="post" action="" enctype="multipart/form-data">



                        <?php echo $this->render('category/toolbar/index.php')?>
                        <div class="clr"></div>
                         <?php // echo $this->render('admin-category/sublink/index.php')?>
                         <?php echo $errors?>
			
                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
						<div id="adminfieldset">
                             <div class="adminheader">Detail</div>
								
								<?php echo $this->partialLoop('row.php',$arrInput);?>
                                
							</div>
							
                                <!-- END: ELEMENT BOX -->	
                              <div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>